package com.hl.mapper;

import com.hl.domain.PsychologicalTopic.PsychologicalTopic;
import com.hl.domain.PsychologicalTopic.PsychologicalTopicReply;

import java.util.List;

public interface PsychologicalTopicMapper {
    // 查询所有主题
    List<PsychologicalTopic> selectAllTopic();

    // 查询主题下的所有回复
    List<PsychologicalTopicReply> selectAllReplyByTopicId(int i);

    // 新增回复
    int addReply(PsychologicalTopicReply reply);

    // 新增心理答疑主题
    int addtopic(PsychologicalTopic topic);

    // 删除心理答疑主题
    int deleteTopic(Long i);

    // 删除心理答疑回复
    int deleteTopicReply(Long i);




}
